<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    if (user != null) {
%>

		<div style="text-align: right;">
			Welcome 
			<%=user.getNickname() %>
			&nbsp;&nbsp;&nbsp;  
			
			<a href="#" onclick="history.back()">Back</a>
			&nbsp;&nbsp;&nbsp;  
			<a href="/admin/menu.jsp">Menu</a>
			&nbsp;&nbsp;&nbsp;  
			<a href="<%= userService.createLogoutURL(request.getRequestURI()) %>">sign out</a>
		</div>
<%
    } 
%>